//
//  SDUserModel.m
//  ZHZtest
//
//  Created by 李彦宏 on 2018/1/18.
//  Copyright © 2018年 LYH. All rights reserved.
//

#import "SDUserModel.h"

@implementation SDUserModel
+(NSDictionary<NSString *,id> *)modelCustomPropertyMapper{
    //把服务器字段转成自己命名的字段
    return @{@"Applytime":@"time",
             @"QQ":@"qnumber",
             @"Winxin":@"wnumber",
             @"BirthDay":@"birthday",
             @"BuyCourse":@"class",
             @"Baiduyun":@"bdcloud",
             @"Vyan":@"vnumber",
             @"sid":@"id",
             @"Gname":@"gname",
             };
}


- (instancetype)initWithDictionary:(NSDictionary *)dict

{
    
    if (self = [super init]) {
        
        [self setValuesForKeysWithDictionary:dict];
    }
    
    return self;
    
}

+ (instancetype)provinceWithDictionary:(NSDictionary *)dict

{
    
    return [[self alloc] initWithDictionary:dict];
    
}
-(void)setValue:(id)value forUndefinedKey:(NSString *)key{
    
}
//归档
- (void)encodeWithCoder:(NSCoder *)aCoder {
    [self yy_modelEncodeWithCoder:aCoder];
    
}
- (id)initWithCoder:(NSCoder *)aDecoder {
    self = [super init];
    return [self yy_modelInitWithCoder:aDecoder];
    
}
- (id)copyWithZone:(NSZone *)zone {
    return [self yy_modelCopy];
    
}
- (NSUInteger)hash {
    return [self yy_modelHash];
}
- (BOOL)isEqual:(id)object {
    return [self yy_modelIsEqual:object];
    
}
- (NSString *)description {
    return [self yy_modelDescription];
    
}
@end
